package com.ymdx.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 学生作品
 * Created by yangliwei on 2017/8/16.
 */
@Entity
@Table(name = "product")
public class Product extends IdEntity{
    private String name;//名字
    private String introduction;//简介
    private Long authorId;//作者id 管理员默认为0
    private String author;//作者信息
    private String sburl;//作品链接
    private String sbimage;//作品图片
    private Integer type;//1：管理员上传的作品  2：学生上传的作品

    private Integer showProduct;//是否在前台展示 0 为不在前台展示 1 展示
    private Integer showOrder;//展示顺序 后台配置，1为在最前面
    private String ewmUrl;//二维码地址
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }


    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getSburl() {
        return sburl;
    }

    public void setSburl(String sburl) {
        this.sburl = sburl;
    }

    public String getSbimage() {
        return sbimage;
    }

    public void setSbimage(String sbimage) {
        this.sbimage = sbimage;
    }

    public Long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getShowProduct() {
        return showProduct;
    }

    public void setShowProduct(Integer showProduct) {
        this.showProduct = showProduct;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    public String getEwmUrl() {
        return ewmUrl;
    }

    public void setEwmUrl(String ewmUrl) {
        this.ewmUrl = ewmUrl;
    }
}
